import { postlink } from "@/api/postapi.js";

export let life = {
    state: {
        arr: []
    },
    mutations: {
        axiosxcc(state, payload) {
            state.arr = payload
        }
    },
    actions: {
        axiosxcc(context, payload) {
            postlink(payload.url).then((ok) => {
                console.log(ok)
                context.commit('axiosxcc', ok)
            }).catch((err) => {
                console.log(err)
            })
        }
    }
}